package com.huadi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * (DataBackupRestore)表实体类
 *
 * @author makejava
 * @since 2023-07-03 15:26:48
 */
@SuppressWarnings("serial")
public class DataBackupRestore extends Model<DataBackupRestore> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String backupName;

    private Date backupDate;

    private Object backupData;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBackupName() {
        return backupName;
    }

    public void setBackupName(String backupName) {
        this.backupName = backupName;
    }

    public Date getBackupDate() {
        return backupDate;
    }

    public void setBackupDate(Date backupDate) {
        this.backupDate = backupDate;
    }

    public Object getBackupData() {
        return backupData;
    }

    public void setBackupData(Object backupData) {
        this.backupData = backupData;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

